#!/bin/bash

#types="write randwrite randread read"
types="randwrite"
result_path="./result3"
fio_file="rbd.fio"


mkdir -p ${result_path}


for type in $types
do
	#if type in "randread read":
	sync
        echo 3 > /proc/sys/vm/drop_caches
        sleep 5
	echo "fio --section=${type} --output=${result_path}/${type}.result $fio_file"
	fio --section=$type --output=${result_path}/${type}.result $fio_file
done

